<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button id="btn">获取请求</button>
    <script src="../dist/index.min.js"></script>
    <script>
      const yfwRequest = new YFWRequest({
        baseURL: "http://localhost:3000",
        retryCount: 3,
        retryInterval: 1000,
      });
      btn.onclick = function () {
        yfwRequest.get("/exception");
      };
    </script>
  </body>
</html>
